package com.example.WebTask1.Enity;

import java.io.Serializable;
import java.util.List;

public class ClassGrade implements Serializable {
//    其中班级信息有：班级名称、年级、班主任名称、班级口号 、班级人数
    private int cid;
    private String className;
    private String grade;
    private String chairman;
    private String  slogan;
    private int count;
    private int id;
    private List<Student> studentList;

    public int getId() {
        return id;
    }

    public String getChairman() {
        return chairman;
    }

    public void setChairman(String chairman) {
        this.chairman = chairman;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public ClassGrade(int cid, String className, String grade, String chairman, String slogan, int count, int id) {
        this.cid = cid;
        this.className = className;
        this.grade = grade;
        this.chairman = chairman;
        this.slogan = slogan;
        this.count = count;
        this.id = id;
    }

    public ClassGrade() {
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "classGrade{" +
                "cid=" + cid +
                ", className='" + className + '\'' +
                ", grade='" + grade + '\'' +
                ", chairman='" + chairman + '\'' +
                ", slogan='" + slogan + '\'' +
                ", count=" + count +
                ", id=" + id +
                ", studentList=" + studentList +
                '}';
    }
}
